import { Modal as AntModal } from 'antd'
import styles from './index.module.less'

export type ModalProps = React.ComponentProps<typeof AntModal>

export const Modal = ({ className = '', children, ...restProps }: ModalProps) => {
  return <AntModal className={`${styles['model-container']} ${className}`} centered maskClosable {...restProps} >{children}</AntModal>
}
